﻿namespace LinkedTU.Models
{
    using System.Collections.Generic;

    public class GroupPost : BaseDbEntity
    {
        private ICollection<Comment> comments;

        public GroupPost()
        {
            this.comments = new HashSet<Comment>();
        }

        public int GroupPostId { get; set; }

        public string Content { get; set; }

        public virtual ApplicationUser Author { get; set; }

        public virtual Group Group { get; set; }

        public ICollection<Comment> Comments
        {
            get { return this.comments; }
            set { this.comments = value; }
        }
    }
}
